<template>
	<div id="app">
		<router-view></router-view>
	</div>
</template>

<script>
	export default {
		name: 'app',
		watch: {
			'$route': 'out'
		},
		data() {
			return {}
		},
		methods: {
			//监听路由
			out() {
				if (this.$route.path == '/login') {
					window.sessionStorage.clear()
				}
			}
		}
	}
</script>
<style>
	html,
	body,
	#app {
		margin: 0;
		padding: 0;
		height: 100%;
		background: url(assets/loginBg.jpg) no-repeat center;
		cursor: url(assets/mouse-plane.gif), auto;
	}
</style>
